﻿
Ext.define('YZSoft.personal.Share', {
    extend: 'YZSoft.src.sheet.Share',

    onWechatSessionClick: function () {
        Wechat.share({
            message: {
                title: RS.$('All__Share_Wechat_Session_Title'),
                description: RS.$('All__Share_Wechat_Session_Desc'),
                thumb: 'http://www.flowportal.com/share/emip/wechat.png',
                media: {
                    type: Wechat.Type.WEBPAGE,
                    webpageUrl: 'http://www.flowportal.com/share/emip/about.html'
                }
            },
            scene: Wechat.Scene.SESSION   //共享到联系人
        }, function () {
        }, function (reason) {
        });
    },

    onWechatTimelineClick: function () {
        Wechat.share({
            message: {
                title: RS.$('All__Share_Wechat_Timeline_Title'),
                description: '',
                thumb: 'http://www.flowportal.com/share/emip/wechat.png',
                media: {
                    type: Wechat.Type.WEBPAGE,
                    webpageUrl: 'http://www.flowportal.com/share/emip/about.html'
                }
            },
            scene: Wechat.Scene.TIMELINE   //共享到朋友圈
        }, function () {
        }, function (reason) {
        });
    }
});